\documentclass{report}
\title{EDABA, Homework 5}
\author{Krzysztof Rudnicki, 307585}

\begin{document}
\maketitle 

\paragraph{Task 1}
\[ R(K, M) \] 
\[ R(L, K) \] 
\[ R(M, N, O, P, Q) \] 
\[ R(P, R) \] 

\paragraph{Task 2}
\[ R(A, B, C, D) \] 
\[ R(D, E, F) \] 
\[ R(F, G) \] 


\paragraph{Task 3}
\[ R(A, D) \] 
\[ R(AF, G) \] 
\[ R(G, F) \] 
\[ R(F, H, B, C) \] 

\end{document}