10. Two students, A and B, are selecting courses from five subjects. They have exactly one course in common, and A selects more courses than B. The number of ways A and B can select courses to meet the above conditions is $\qquad$
If B selects only one course, then the number of ways A and B can select courses is $2^{4}-1=15$; if B selects two courses, then the number of ways A and B can select courses is $C_{4}^{1}\left(C_{3}^{2}+C_{3}^{3}\right)=16$. Therefore, the number of ways A and B can select courses that satisfy the condition is $C_{5}^{1} \cdot 31=155$.