Samantha bought a calculator.she gave the cashier$50 and received$2 in change. How many did the calculator cost?