I need help with building a formula for the below

only if A1=1 and B1= M or H then C1 would return a 1 result

the other A1 options would be blank and the other B1 options would be a L or none