Titans defeat Rams in boys and girls basketball