There are no marking to identify the coins, so the order is not important. Since the order not important we use combination instead of permutation.
A coin have 2 possible outcome, head or tails. Assuming the coin is fair each outcome will be 50% or 0.5 chance. If heads= A and tails =B, then the probability of 2 pennies will be: