# modify this function, and create other functions below as you wish
def question02(risk, bonus, trader):
    # modify and then return the variable below
    val=[]
    for i in range(len(trader)):
        count=0
        for j in range(len(risk)):
            if trader[i]>=risk[j]:
                count+=1
        bon=count*bonus[i]
        val.append(bon)
    answer=max(val)
    return answer
