Dr. Johnson was doing some calculations for his work. He was supposed to multiply a certain number by 0.5 and then add 3 to the result. He got distracted and accidentally divided this number by 0.5 and subtracted 3 from the result. Surprisingly, he still got the right answer. What was the number that Dr. Johnson used in his calculations?