Practice problem
Probability of Independent Events
A coin that comes up heads with probability and tails with probability independently on each flip is flipped eight times. Suppose the probability of three heads and five tails is equal to of the probability of five heads and three tails. Let , where and are relatively prime positive integers. Find .
Source: AIME