There are 10 ways of combining 6 team members. Call them A, B, C, D, L and M, where L is Lucy and M is Maya.
Here are all the possible teams:
ABC DLM, ABD CLM, ABL CDM, ABM CDL, BCD ALM,
BCL ADM, BCM ADL, ACD BLM, ACL BDM, ACM BDL.
You can see that LM appear in the same team 4 times. So the probability that Lucy and Maya are in the same team is 4/10 or 2/5.
Another way of looking at it is that the possibilities must include Lucy and Maya sharing their team with each of the 4 other members.