Looking for a neat way to accomplish this type problem

Printable View