How many trees with 10 nodes are there, given that each vertex must have a degree of either 1, 2, or 5?
I initially approached the problem by attempting to construct each tree individually, focusing first on maximizing the number of edges with vertices of degree 5, then proceeding similarly for vertices of degree 2. However, this method proved to be time-consuming and lacked certainty regarding the completeness of the solution. Is there a more efficient strategy for solving such problem?

This is a way to make trial and error easier
Using Euler characteristic for planar graphs with no faces we get number of edges must always be equal to 9 which is evident from your tries
Since number of edges are known sum of degrees for all vertices must be 18
Let $x_n$ be the number of vertices with degree n
We have $$x_1+x_2+x_5=10\\x_1+2x_2+5x_5=18$$
This leads to 3 integral solutions $$(2,8,0)\\(5,4,1)\\(8,0,2)$$
The first and third are easy and yield only one graph each since no degree 1 node can be anywhere but the end of a chain
As far as I am aware you need trial and error for second
Edit: OK so my awareness just increased for second one consider the graph with one long chain if you take off a node at one end and attach it to a free degree one node the number of degree one and degree two nodes don't change
So my idea here is first we fix a one degree on one edge of degree 5 (since this is necessary given the numbers) now since we can make a side chain of every length $\ge1$ we just find the number of partitions of 8 so $$1,1,1,5\\1,1,2,4\\1,1,3,3\\1,2,2,3\\2,2,2,2$$
This means your seven graphs are exhaustive