Gregory R. answered 09/21/20
Software and Database Development, Technical Interview Preparation
Let's call rose bush R and Ivy bush I. Then, 3*R + 8*I = 62, and also 1*R + 3*I = 22
From here we can state: 1*R = 22 - 3*I
If we substitute this into the first equation, we get: 3*(22 - 3*I) + 8*I = 62 => 66 - 9*I + 8*I = 62 => -1*I = -4
=> I = 4
Then, 1*R = 22 - 3*I = 22 - 3*4 = 10
Answer: Rose Bush costs $10 each and Ivy bush costs $4 each