Ryan is messing with Brice’s coin. He weights the coin such that it comes up on one side twice as frequently as the other, and he chooses whether to weight heads or tails more with equal probability. Brice flips his modified coin twice and it lands up heads both times. The probability that the coin lands up heads on the next flip can be expressed in the form $\tfrac{p}{q}$ for positive integers $p, q$ satisfying $\gcd(p, q) = 1$, what is $p + q$?

1. **Determine the probabilities of the coin being weighted towards heads or tails:**
   - The coin can be weighted towards heads or tails with equal probability, so:
     \[
     P(\text{Heads weighted}) = P(\text{Tails weighted}) = \frac{1}{2}
     \]

2. **Calculate the probability of flipping two heads given the coin is weighted towards heads:**
   - If the coin is weighted towards heads, the probability of heads is \(\frac{2}{3}\) and the probability of tails is \(\frac{1}{3}\).
   - The probability of flipping two heads in this case is:
     \[
     P(\text{HH} \mid \text{Heads weighted}) = \left(\frac{2}{3}\right) \times \left(\frac{2}{3}\right) = \frac{4}{9}
     \]

3. **Calculate the probability of flipping two heads given the coin is weighted towards tails:**
   - If the coin is weighted towards tails, the probability of heads is \(\frac{1}{3}\) and the probability of tails is \(\frac{2}{3}\).
   - The probability of flipping two heads in this case is:
     \[
     P(\text{HH} \mid \text{Tails weighted}) = \left(\frac{1}{3}\right) \times \left(\frac{1}{3}\right) = \frac{1}{9}
     \]

4. **Use Bayes' Theorem to find the probability that the coin is weighted towards heads given that two heads were flipped:**
   - The total probability of flipping two heads is:
     \[
     P(\text{HH}) = P(\text{HH} \mid \text{Heads weighted}) \cdot P(\text{Heads weighted}) + P(\text{HH} \mid \text{Tails weighted}) \cdot P(\text{Tails weighted})
     \]
     \[
     P(\text{HH}) = \left(\frac{4}{9}\right) \cdot \left(\frac{1}{2}\right) + \left(\frac{1}{9}\right) \cdot \left(\frac{1}{2}\right) = \frac{4}{18} + \frac{1}{18} = \frac{5}{18}
     \]

   - The probability that the coin is weighted towards heads given that two heads were flipped is:
     \[
     P(\text{Heads weighted} \mid \text{HH}) = \frac{P(\text{HH} \mid \text{Heads weighted}) \cdot P(\text{Heads weighted})}{P(\text{HH})} = \frac{\left(\frac{4}{9}\right) \cdot \left(\frac{1}{2}\right)}{\frac{5}{18}} = \frac{\frac{4}{18}}{\frac{5}{18}} = \frac{4}{5}
     \]

5. **Calculate the probability that the coin lands heads on the next flip:**
   - If the coin is weighted towards heads, the probability of heads is \(\frac{2}{3}\).
   - If the coin is weighted towards tails, the probability of heads is \(\frac{1}{3}\).
   - The overall probability of heads on the next flip is:
     \[
     P(\text{Heads on next flip}) = P(\text{Heads weighted} \mid \text{HH}) \cdot \frac{2}{3} + P(\text{Tails weighted} \mid \text{HH}) \cdot \frac{1}{3}
     \]
     \[
     P(\text{Tails weighted} \mid \text{HH}) = 1 - P(\text{Heads weighted} \mid \text{HH}) = 1 - \frac{4}{5} = \frac{1}{5}
     \]
     \[
     P(\text{Heads on next flip}) = \left(\frac{4}{5}\right) \cdot \left(\frac{2}{3}\right) + \left(\frac{1}{5}\right) \cdot \left(\frac{1}{3}\right) = \frac{8}{15} + \frac{1}{15} = \frac{9}{15} = \frac{3}{5}
     \]

6. **Simplify the fraction and find \(p + q\):**
   - The fraction \(\frac{3}{5}\) is already in its simplest form.
   - Therefore, \(p = 3\) and \(q = 5\).
   - Thus, \(p + q = 3 + 5 = 8\).

The final answer is \( \boxed{ 8 } \)