Solution of two-weight problems for integral transforms with positive kernels