On selling apples at Rs 40 per kg, a vendor incurs 10% loss. If he incurs a total loss of Rs 120, calculate the quantity (in kg) of apples he sold.