Xiaoming's family pays a total of 48 yuan for electricity and water, and the ratio of electricity and water is 3:1. How much does Xiao Ming's family pay for electricity?
小明家付电费和水费共48元，电费和水费的比是3：1．小明家应付电费多少元？
<gadget id="calculator">3 + 1</gadget>
<output>4</output>

<gadget id="calculator">3 / 4</gadget>
<output>3/4 = around 0.75</output>

<gadget id="calculator">48 * (3/4)</gadget>
<output>36</output>

<result>36</result>