under what circumstances is the magnitude of proj(a onto b) equal to the magnitude of proj(b onto a)?

one of the answers is: magnitude of vector a equals magnitude of vector b, and the angle between needs to be 45 or 135. can someone tell me why the angle has to be 45 or 135?

thanks