In the projects to P&E relationship, count the number of P&E records where team is equal to A.
From there, you can create a formula checkbox on the Project table with the formula:
if([# of P&E Team A Assigned]>0,true,false)
Let me know if that helps.