Janice earns a 4 percent commission for the medical equipment that she sells. If she earned $1,823.94 in commission on the digital x-ray machine that she sold, what was the cost of the machine?