Machine A can complete a job in 12 hours, and Machine B can do the same job at of the rate of Machine A. If Machine A completes of the job and then Machine B finishes the remaining portion, what is the total amount of time taken by Machine A and Machine B?