X is the total number of flowers
7/9 of the remaining are not roses...
of the remaining, 4/7*7/9 x = 36 are tulips
4/9 x = 36
x = 36*9/4 = 81
81 flowers altogether
2/9*81 = 18 are roses
63 remain... of them 3/7*63 = 27 are sunflowers
63-27 = 36 are tulips, so yes it checks