Question 143608
let lettuce=l
let tomatoes=t

12=l+t
t=2l

Substitute t=2l into the first equation.

12=l+2l
12=3l
4=l

Thus she bought 4 lettuce heads and 8 tomatoes. This follows and is easily checked.