Pencils cost x cents and erasers cost y cents each. Mary buys 7 pencils and 3 erasers. Write down the total cost in cents, in terms of x and y.