Paste the output of the first cut command (separated by spaces) with a comma delimiter, followed by the output of the second cut command (separated by newlines) with a comma delimiter.
paste -d',' <(cut -d' ' -f1) <(tr '\n' ',' <(cut -d' ' -f2))