Hello! I need help with this problem thanks!!

Answer:
10 tomato plants and
15 rose plants
Step-by-step explanation:
Let t be the no. of tomato plants,
And r the no. of rose plants
t + r = 25
t + 2r = 40
t = 25 - r
25 - r + 2r = 40
r = 15
t = 25 - 15
t = 10