Suppose a consumer has preferences over two goods, X and Y, which are perfect substitutes. In particular, two units of X is equivalent to one unit of Y. If the price of X is $1, the price of Y is $3, and the consumer has $30 of income to allocate to these two goods, how much of each good should the consumer purchase to maximize satisfaction?