The equation I created for this was 250 cm= x + 2x + 18 + x-12 + x+ 4 where x is the length of the first shelf. I then simplified my equation to this:
250= 5x +10. Then I used algebra to find x (if you need me to explain, just leave a comment please). For this one, x= 48cm.
Then, I multiplied 48 by two and added 18. This gave me an answer of 114cm for the length for the length of the second shelf.