Heat conduction in two joint half-lines is considered under the condition of perfect contact, i.e. when the temperatures at the contact point and the heat fluxes through the contact point are the same for both regions. The heat conduction in one half-line is described by the equation with the Caputo time-fractional derivative of order α, whereas heat conduction in another half-line is described by the equation with the time derivative of order β. The fundamental solutions to the first and second Cauchy problems as well as to the source problem are obtained using the Laplace transform with respect to time and the cos-Fourier transform with respect to the spatial coordinate. The fundamental solutions are expressed in terms of the Mittag-Leffler function and the Mainardi function.