Need help with specifying who is affected by an action

So I’m trying to increase the amount of speed boost Lúcio gives. Problem is I’m not sure how to specify that a player is within a 12 meter radius of a Lúcio that is in alternate form (speed boost) and the opposite of those conditions. If any of you could explain how to do such a thing it would help a lot, thanks.