Heather and Kyle need to mow a lawn and paint a room. If Heather does both jobs by herself, it will take her a total of nine hours. If Heather mows the lawn and, after she finishes, Kyle paints the room, it will take them a total of eight hours. If Kyle mows the lawn and, after he finishes, Heather paints the room, it will take them a total of seven hours. If Kyle does both jobs by himself, it will take him a total of six hours. It takes Kyle twice as long to paint the room as it does for him to mow the lawn. The number of hours it would take the two of them to complete the two tasks if they worked together to mow the lawn and then worked together to paint the room is a fraction $\tfrac{m}{n}$where $m$ and $n$ are relatively prime positive integers. Find $m + n$.
1. Let \( H_m \) and \( H_p \) be the hours Heather takes to mow the lawn and paint the room, respectively. Similarly, let \( K_m \) and \( K_p \) be the hours Kyle takes to mow the lawn and paint the room, respectively.

2. From the problem, we have the following information:
   - Heather does both jobs in 9 hours: \( H_m + H_p = 9 \)
   - Heather mows the lawn and Kyle paints the room in 8 hours: \( H_m + K_p = 8 \)
   - Kyle mows the lawn and Heather paints the room in 7 hours: \( K_m + H_p = 7 \)
   - Kyle does both jobs in 6 hours: \( K_m + K_p = 6 \)
   - Kyle takes twice as long to paint the room as to mow the lawn: \( K_p = 2K_m \)

3. Using \( K_p = 2K_m \) in \( K_m + K_p = 6 \):
   \[
   K_m + 2K_m = 6 \implies 3K_m = 6 \implies K_m = 2
   \]
   \[
   K_p = 2K_m = 2 \times 2 = 4
   \]

4. Substitute \( K_m = 2 \) and \( K_p = 4 \) into the equations:
   - \( H_m + K_p = 8 \):
     \[
     H_m + 4 = 8 \implies H_m = 4
     \]
   - \( K_m + H_p = 7 \):
     \[
     2 + H_p = 7 \implies H_p = 5
     \]

5. Verify the values:
   - \( H_m + H_p = 4 + 5 = 9 \) (correct)
   - \( K_m + K_p = 2 + 4 = 6 \) (correct)

6. Calculate the combined work rates:
   - Heather and Kyle together mow the lawn:
     \[
     \text{Rate of Heather mowing} = \frac{1}{H_m} = \frac{1}{4}
     \]
     \[
     \text{Rate of Kyle mowing} = \frac{1}{K_m} = \frac{1}{2}
     \]
     \[
     \text{Combined rate} = \frac{1}{4} + \frac{1}{2} = \frac{1}{4} + \frac{2}{4} = \frac{3}{4}
     \]
     \[
     \text{Time to mow together} = \frac{1}{\frac{3}{4}} = \frac{4}{3} \text{ hours}
     \]

   - Heather and Kyle together paint the room:
     \[
     \text{Rate of Heather painting} = \frac{1}{H_p} = \frac{1}{5}
     \]
     \[
     \text{Rate of Kyle painting} = \frac{1}{K_p} = \frac{1}{4}
     \]
     \[
     \text{Combined rate} = \frac{1}{5} + \frac{1}{4} = \frac{4}{20} + \frac{5}{20} = \frac{9}{20}
     \]
     \[
     \text{Time to paint together} = \frac{1}{\frac{9}{20}} = \frac{20}{9} \text{ hours}
     \]

7. Total time to complete both tasks together:
   \[
   \text{Total time} = \frac{4}{3} + \frac{20}{9} = \frac{12}{9} + \frac{20}{9} = \frac{32}{9} \text{ hours}
   \]

8. The fraction \(\frac{32}{9}\) is in simplest form, so \( m = 32 \) and \( n = 9 \).

The final answer is \( 32 + 9 = \boxed{41} \)