Consider the 3-digit numbers which are written by using the digits 1, 2, 3, 4, 5. Find the number of those numbers which have two equal digits and one different digit.