On Hilbert-type and Hardy-type integral inequalities and applications. (2019)