3b + 0.5a
the variables b and a are unknown values that represent the number of bananas and apples to be bought. These are next to each of its prices for it to be multiplied once we know the variable.
The costs of the fruits are to be added and you will end up with the total cost of fruits.