The efficiency is obtained or calculated by dividing the work successfully done by the machine by the total amount of energy spent to perform the work. Then, multiply the obtained ratio by 100%. From the given,
efficiency = (300 J/ 1000J) x 100% = 30%
Thus, the machine is only 30% efficient.