You want to fill a 2-foot shelf with framed pictures.There are x pictures in 4-inch frames and y pictures in 8-inch frames.

Write an function for this situation.