Visualize modular exponentiation and a toy Diffie-Hellman exchange.
Choose a clock (modulus) and generator, then Alice and Bob pick secret numbers. Note: don't forget that a finite field of prime order 13 is way too small for use in the real world, and that this is just a toy example. In real-world protocols, finite-field Diffie-Hellman uses prime numbers that are at least 2048 bits long.
Public: g^a mod p = 8
Calculation: 2^3 mod 13 = 8
Public: g^b mod p = 6
Calculation: 2^5 mod 13 = 6
Alice computes: Bob's public^a mod p = 6^3 mod 13 = 10
Bob computes: Alice's public^b mod p = 8^5 mod 13 = 10