unequal length combining data

Hi and welcome.
There's a similar question here Filter in dplyr HELP.

The advice I gave there I think applies here as well. Could you give clarity as to what problem you're having, and pose your question with a a reproducible example (reprex)? This makes it much easier to understand your issue, and reprex s are great starting points to offer you a suggestion.

Also, given this is the 2nd of a very similar question, I should make you aware of our homework policy, FAQ: Homework Policy. We are happy to help with homework, but be sure to mark them as such.