How do you want the answer shown?
This is teh basis of what you want...
=SUMIFS(Basic!B2:AT2,Basic!$B$1:$AT$1,Master!L2)