a carpenter uses 3 hinges on every door he hangs. he hangs 4 doors on the floor and x doors on the second floor. if he uses 36 hinges total, how many doors did he hang on the second floor?