I'll do the first one.

The first shelf is 20 cm above the base, so where x is the coordinate of either end. (If you look at the graph of a(x) you'll see it's centered on the y-axis.) Thus we need to solve:

So the ends of the first shelf are at

Can you do the other 3 shelves?

-Dan