Create tiles

A program that computes the number of square blue and yellow tiles I need to buy to cover the wall using the scheme that I explained.