Final answer:
You and your friend raised $14 for the charity.
Step-by-step explanation:
To calculate the amount of money raised for the charity, we first need to find the total distance covered by you and your friend. You ran 4 miles and your friend ran 3 miles, so the total distance covered is 4 + 3 = 7 miles.
Next, we multiply the total distance by the amount donated per mile, which is $2. So, the total amount raised for the charity is 7 x $2 = $14.