Tony makes and sells birdhouses.

He sells small birdhouses for $25 and large birdhouses for $45. Last month, he sold 11 birdhouses and earned $335. Determine how many of each birdhouse Tony sold.

Let x be the number of small birdhouses Tony sold and y be the number of large birdhouses he sold.

From the given information, we can set up the following system of equations:
1. x + y = 11 (Total number of birdhouses sold)
2. 25x + 45y = 335 (Total earnings from selling birdhouses)

To solve this system of equations, we can use the substitution method. Let's solve for x in the first equation:
x = 11 - y

Now substitute x in the second equation:
25(11 - y) + 45y = 335
275 - 25y + 45y = 335
20y = 60
y = 3

Now, substitute y back into the first equation to solve for x:
x + 3 = 11
x = 8

Therefore, Tony sold 8 small birdhouses and 3 large birdhouses last month.